package com.mq.broadcast;

import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ytj
 * @date 2024/1/17
 */
@Configuration
public class BroadcastConfig {

    @Bean
    public TopicExchange topicExchange(){
        return new TopicExchange(BroadcastMessage.EXCHANGE,true,false);
    }
}
